#ifndef SEARCHUSERREQUESTMESSAGE_H
#define SEARCHUSERREQUESTMESSAGE_H

#include "./entities/message/superClass/message.h"

/*
Json数据格式
{
    "messageType": [SearchUserRequest](int)
    "userId": [userId](string)
}
*/
class SearchUserRequestMessage : public Message
{
public:
    SearchUserRequestMessage() = delete;

    SearchUserRequestMessage(const UserId& userId);
    SearchUserRequestMessage(const QJsonObject&);
    QJsonObject PackJsonData() const override;
    UserId getUserId() const;

private:
    UserId m_userId;

};

// 编译时注册
Q_DECLARE_METATYPE(SearchUserRequestMessage)

#endif // SEARCHUSERREQUESTMESSAGE_H
